package com.joysuch.wwyt.mh.service;

import com.joysuch.wwyt.mh.entity.MhMajorHazardTaskAssign;
import com.joysuch.wwyt.mh.entity.MhMajorHazardTaskRecord;
import com.joysuch.wwyt.mh.entity.MhMajorHazardTaskRecordAssign;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zqw
 * @since 2022-05-24
 */
public interface MhMajorHazardTaskRecordAssignService extends IService<MhMajorHazardTaskRecordAssign> {

    void saveRecordAssign(Long userId, Long recordId);


    /**
     * 批量生成逾期的个人记录
     *
     * @param records
     * @param recordTaskIdMap key:recordId value taskId
     * @param taskAssignMap   key taskId   value taskAssigns
     * @param date
     */
    void batchSaveOverdueRecordAssigns(List<MhMajorHazardTaskRecord> records, Map<Long, Long> recordTaskIdMap, Map<Long, List<MhMajorHazardTaskAssign>> taskAssignMap, Date date);
}
